#!/bin/bash

echo "Building go-war3proxy..."

# 清理旧的编译产物
rm -f go-war3proxy

# 编译项目
go build -o go-war3proxy .

if [ $? -eq 0 ]; then
    echo "Build successful!"
    echo "Executable: go-war3proxy"
    ls -lh go-war3proxy
else
    echo "Build failed!"
    exit 1
fi
